package com.woniuxy.param;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author 范腾龙
 * @create 2022/1/6
 * 添加商品信息的参数类
 */
@Data
public class AddCommodityParam {

//    @ApiModelProperty(value = "商品编号")
//    @TableId(value = "commodity_table_id", type = IdType.AUTO)
//    private Integer commodityTableId;

    @NotNull(message = "请输入品牌编号")
    @ApiModelProperty(value = "品牌编号")
    @TableField("goods_brands_id")
    private Integer goodsBrandsId;
    @NotNull(message = "请输入商品大类")
    @ApiModelProperty(value = "大类id")
    @TableField("goods_general_id")
    private Integer goodsGeneralId;
    @NotNull(message = "请输入商品小类")
    @ApiModelProperty(value = "关联2级小类id")
    @TableField("goods_small_id")
    private Integer goodsSmallId;

    @NotNull(message = "请输入商品3级小类id")
    @ApiModelProperty(value = "关联3级小类id")
    @TableField("goods_smaller_id")
    private Integer goodsSmallerId;

    @NotBlank(message = "请输入商品名")
    @ApiModelProperty(value = "商品名")
    @TableField("goods_table_name")
    private String goodsTableName;

    @NotNull(message = "请输入门店id")
    @ApiModelProperty(value = "门店id")
    @TableField("shop_id")
    private String shopId;

    @NotNull(message = "请输入仓库id")
    @ApiModelProperty(value = "仓库id")
    @TableField("warehouse_id")
    private Integer warehouseId;

    @ApiModelProperty(value = "官方价")
    @TableField("goods_office_price")
    private Double goodsOfficePrice;

    @ApiModelProperty(value = "评估价")
    @TableField("goods_evaluate_price")
    private Double goodsEvaluatePrice;

    @ApiModelProperty(value = "收购价")
    @TableField("goods_buy_price")
    private Double goodsBuyPrice;

    @ApiModelProperty(value = "商品描述")
    @TableField("goods_message")
    private String goodsMessage;

    @ApiModelProperty(value = "录入人")
    @TableField("user_Input")
    private String userInput;

    @ApiModelProperty(value = "录入时间")
    @TableField("user_inputtime")
    private String userInputtime;

    @ApiModelProperty(value = "是否可售")
    @TableField("warehouse_status")
    private Integer warehouseStatus;

    @ApiModelProperty(value = "库存数量")
    @TableField("warehouse_count")
    private Integer warehouseCount;

    @ApiModelProperty(value = "显示状态")
    @TableField("warehouse_display_status")
    private Integer warehouseDisplayStatus;

    @ApiModelProperty(value = "创建人")
    @TableField("user_creator")
    private String userCreator;

    @ApiModelProperty(value = "创建时间")
    @TableField("creator_time")
    private String creatorTime;

    @ApiModelProperty(value = "1 店员提交（待鉴定） 2 鉴定完成（待评估）  3 估价完成（已评估）4失效")
    @TableField("goods_process")
    private Integer goodsProcess;

    private String gpropsList1;
    private String gpropsList2;
    private List<String> gpropsList3;
}
